<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title><?php echo $spacename?></title>
<link href="newskin.css" rel="stylesheet" type="text/css">
<link href="../base.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php  include(dirname(__FILE__)."/com_head.htm"); ?>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="170" height="216" valign="top">
      <?php include(dirname(__FILE__)."/com_menu.php");?>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:6px">
        <tr align="center">
          <td height="22" colspan="2" class="mmt"> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:2px">
              <tr>
                <td width="28%" height="18" align="right" valign="top"><img src="img/dd/dedeexplode.gif" width="11" height="11" class="ittop"></td>
                <td width="72%"><strong>友情链接</strong></td>
              </tr>
            </table></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td colspan="2" align="center" class="mma">
          	<table width="98%" border="0" cellspacing="0" cellpadding="0" style="padding-top:6px">
              <?php
              $dsql->SetQuery("Select * From #@__member_flink where mid='$userNumID' order by aid desc");
              $dsql->Execute();
              while($row = $dsql->GetArray())
              {
              	if($row['linktype']==2) $textname = "<img src='{$row['imgurl']}' width='{$row['imgwidth']}' height='{$row['imgheight']}' border='0' alt='{$row['title']}'>";
                else $textname = $row['title'];
              ?>
              <tr align="center">
                <td height="24" class="mmbb">
                <a href='<?php echo $row['url']?>' target='_blank'><?php echo $textname?></a>
                </td>
              </tr>
              <?php  } ?>
            </table>
            </td>
        </tr>
        <tr>
          <td colspan="2" height="6" class="mmb">&nbsp;</td>
        </tr>
      </table> </td>
    <td width="10">&nbsp;</td>
    <td width="590" valign="top">
    	企业介绍<br>
    	产品展示<br>
    	联系方式<br>
      <table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:6px">
        <tr>
          <td height='24' background="img/tbg2.gif"><font color="#666600"><b>【空间公告】</b></font></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="63" colspan="2">
          	<table width="100%"  border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td height="63">
                  <?php echo $news?>
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
	  <table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:6px">
        <tr>
          <td colspan="2" background="img/tbg2.gif" bgcolor="#EEF4EA"><font color="#666600"><b>【最新文档】</b></font></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="63" colspan="2"> <table width="100%"  border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td height="219" valign="top">
				<?php
				$squery = "
				   Select arc.*,tp.typename From `#@__full_search` arc left join #@__arctype tp on arc.typeid=tp.ID
				   where arc.mid='$userNumID' order by arc.uptime desc limit 0,6;
				";
				$dsql->SetQuery($squery);
				$dsql->Execute();
				while($row = $dsql->GetArray()){
					$row['arcurl'] = $row['siteurl'];
          if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
          if($cfg_multi_site=='是'){
           	 if(!eregi("^http://",$row['litpic'])){
           	 	  $row['litpic'] = $cfg_mainsite.$row['litpic'];
           	 }
          }
				?>
				<table border='0' width='100%'>
          <tr height='24'>
               <td width='19%' rowspan="2" align="center">
                        <table width="100" border='0' cellpadding='1' cellspacing='1' bgcolor="#E6EAE3">
                          <tr>
                            <td bgcolor="#FFFFFF">
                            <a href='<?php echo $row['arcurl']?>' target='_blank'><img border='0' src='<?php echo $row['litpic']?>' width='100' alt='<?php echo $row['title']?>'></a>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width='3%' align="center"><img src="img/file.gif" width="18" height="17"></td>
                      <td width='54%'><b><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a></b></td>
                      <td width="24%">点击:<?php echo $row['click']?></td>
                    </tr>
                    <tr>
                      <td height="56" colspan='3'> 　　<?php echo $row['description']?><font color='#8F8C89'>(<?php echo strftime('%y-%m-%d %H:%M',$row['uptime'])?>)</font>
                      </td>
                    </tr>
                    <tr>
                      <td height='2' colspan='4' background='img/writerbg.gif'></td>
                    </tr>
            </table>
				  <?php
				}
				  ?>
				  </td>
              </tr>
              <tr>
                <td height="20" align="right">
                <a href="member_archives.php?uid=<?php echo $uid?>">&lt;&lt; 浏览该用户所有文档 &gt;&gt;</a>
                </td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<?php
$dsql->ExecuteNoneQuery("Update #@__member set spaceshow=spaceshow+1 where ID='$userNumID'; ");
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
